import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login/Login.vue'
import Index from '../components/Index/Index.vue'
/*组织设置*/
import BasicManagement from '../components/Index/BasicManagement.vue'
/*人员导入*/
import PersonnelToImport from '../components/Index/PersonnelToImport.vue'
/*积分兑换*/
import creditsExchange from '../components/Index/PointManagement/CreditsExchange/creditsExchange.vue'
/*管理员设置*/
import GM from '../components/Index/gm.vue'
/*党员管理*/
import partyMembeManagement from '../components/Index/partyMembeManagement.vue'
/*活动管理*/
import huodong from '../components/Index/huodong.vue'
/*书记党员管理*/
import bookPartyMNG from '../components/Index/bookstore/bookPartyMNG.vue'
import Managementtext from '../components/Index/bookstore/Managementtext.vue'
// 组织机构管理
/*修改密码界面*/
import user from '../components/Login/User.vue'
// 活动管理
import ActivityReleased from '../components/Index/ActivityManagement/ActivityReleased/ActivityRelease.vue'
import ActivityWonderful from '../components/Index/ActivityManagement/ActivityWonderful/ActivityWonderful.vue'

// 积分礼品
import Gift from '../components/Index/PointManagement/GiftManagement/Gift.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/',component: Login},
    {path: '/login',component: Login},
    {path:'/Index',component:Index,children:[
	  {path: 'BasicManagement',component: BasicManagement,},
      {path:'creditsExchange',component: creditsExchange},
      {path: 'ActivityReleased',component: ActivityReleased},// 活动发布修改
      {path: 'ActivityWonderful',component: ActivityWonderful},// 精彩回顾
      {path: 'Gift',component: Gift},// 礼品管理
      {path:'ManageSetting',component:GM},
      {path:'PersonnelToImport',component: PersonnelToImport},
      {path:'partyMembeManagement',component:partyMembeManagement},
      {path:'bookPartyMNG',component:bookPartyMNG},
      {path:'Managementtext',component:Managementtext},
      {path:'huodong',component:huodong},
      {path:'user',component:user},
      {path:'login',component:Login}
    ]},
]
})
